#pragma once
#include <typescommon.h>
#if DEVICE_PLATFORM_CONFIGURE == DEVICE_PLATFORM_LINUX
typedef uint32_t flashAddrType;
#elif DEVICE_PLATFORM_CONFIGURE == DEVICE_PLATFORM_ARM32_MCU
typedef uint32_t flashAddrType;
#elif DEVICE_PLATFORM_CONFIGURE == DEVICE_PLATFORM_C51_MCU
typedef uint16_t flashAddrType;
#endif

int flashOptRead(flashAddrType flashAddr, void *obuf, int osize);
int flashOptWrite(flashAddrType flashAddr, const void *ibuf, int isize);
